<!DOCTYPE html>
<html class="no-js" lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
    <title>办公室装修_办公装修_办公装饰_上海简单办公装修_专卖店装修_公装无忧官网</title>
    <meta name="description" content="办公室装修_办公装修_办公装饰_上海简单办公装修_专卖店装修_公装无忧官网"/>
    <meta name="keywords" content="装修报价，在线报价，在线装修报价"/>
    <meta name="format-detection" content="mobileephone=no">
    <meta name="renderer" content="webkit">
    <link rel="shortcut icon" href="http://www.zxjmy.com/static/images/icon/logo.ico">

    <!--<meta name="renderer" content="webkit">-->

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/header.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/footer.css">
    <link rel="stylesheet" href="__PUBLIC__/css/sign.css" type="text/css">
    <script type="text/javascript" src="__PUBLIC__/jquery-1.11.1.min.js"></script>
    <script src="__PUBLIC__/js/jquery-1.2.6.min.js"></script>
</head>
<body>
<div class="headk">
    <div class="head">
        <div class="floatleft">您好，欢迎来到金蚂蚁装修网！<span>北京<a href="">【切换】</a></span></div>
        <div class="floatright">
            <a href="{:U('Home/Login/index')}">登录</a>
            |<a href="#">个人注册</a>|<a href="{:U('Home/Register/comreg')}">装修公司注册</a>
            |<a href="{:U('Zxwd/index')}">装修问答</a>|

            <span>服务热线:400-0606-129</span>
        </div>
    </div>
</div>
<div class="top">
    <div class="logo">
        <a href="{:U('Home/index/index')}"><img src="http://www.zxjmy.com/./attachs/photo/201708/20170817_5CD858EFF4493F26854D81163266500D.png" width="368"></a>
    </div>
</div>
<div class="indexm login">
    <div class="login_left">
        <img src="__PUBLIC__/images/grzc.jpg" width="555" height="359">
    </div>
    <div class="login_right" >
        <div class="loginTit">
            <h5>个人注册</h5>
        </div>
        <div class="loginul">

            <form action="__URL__/ownadd" id="form" method="post">
                
                <ul>
                    <li><input type="text" placeholder="用户名" class="xminput" name="username"></li>
                    <li><input type="text" placeholder="手机号" class="xminput" name="mobile" id="mobile"></li>
                    <li><input type="password" placeholder="密码" class="xminput" name="password"></li>
                    <li><input type="password" placeholder="确认密码" class="xminput" name="repassword"></li>
                    <li><input type="text" class="login_yzm" placeholder="验证码" name="code"><input type="button" value="发送验证码到手机" class="login_fsyzm" id="sendcode" onclick="getCode()" data="0"></li>
                    <li>
                        <input type="submit" value="注册" class="zbinput" id="regesiter">
                    </li>
                    <li>
                        <span class="floatright"><a href="{:U('Home/Login/index')}">已有账号？ <b>立即登录</b></a></span>
                    </li>
                </ul>
            </form>
        </div>
    </div>
</div>
<include file="Public:foot"/>


<script src="js/zcity.js"></script>
<script>
    var InterValObj; //timer变量，控制时间
    var count = 60; //间隔函数，1秒执行
    var curCount;//当前剩余秒数
    function getCode() {
        console.log(1)
        var tel = $("#mobile").val();
       
        //向后台发送处理数据
       $.ajax({
                url:"__CONTROLLER__/sendsms",
                type:"post",
                data:{'mobile':tel},
                success:function(result){
                     console.log(result); 
                      curCount = count;
                        $("#sendcode").attr("disabled", "true");
                        $("#sendcode").val("请在" + curCount + "秒内输入验证码");
                        InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器，1秒执行一次
                }
            });       
    }



    function SetRemainTime() {
        if (curCount == 0) {
            window.clearInterval(InterValObj);//停止计时器
            $("#sendcode").removeAttr("disabled");//启用按钮
            $("#sendcode").val("重新发送验证码");
        }
        else {
            curCount--;
            $("#sendcode").val("请在" + curCount + "秒内输入验证码");
        }
    }

</script>

</body>
</html>